Problem Note 41935: OF Array-name{*} syntax when used in PROC FCMP returns an ERROR message
The OF Array-name{*} syntax when used with a function inside PROC FCMP will return an ERROR message indicating invalid syntax. Currently the OF Array-name{*} is not supported with PROC FCMP. Here is an example of the OF Array-name{*} syntax inside PROC FCMP which returns a syntax error:
proc fcmp;
array x(3);
x1=1;
x2=2;
x3=3;
total=sum(of x{*});
run;
A workaround would be to do the following:
proc fcmp;
array x(3);
x1=1;
x2=2;
x3=3;
total=sum(of x1-x3);
run;
Operating System and Release Information
| SAS System | Base SAS | z/OS | 9.2 TS1M0 | 9.4 TS1M3 |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
| Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.4 TS1M3 |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
| Microsoft Windows XP Professional | 9.2 TS1M0 | |
| Windows Vista | 9.2 TS1M0 | |
| Windows Vista for x64 | 9.2 TS1M0 | |
| 64-bit Enabled AIX | 9.2 TS1M0 | 9.4 TS1M3 |
| 64-bit Enabled HP-UX | 9.2 TS1M0 | 9.4 TS1M3 |
| 64-bit Enabled Solaris | 9.2 TS1M0 | 9.4 TS1M3 |
| HP-UX IPF | 9.2 TS1M0 | 9.4 TS1M3 |
| Linux | 9.2 TS1M0 | 9.4 TS1M3 |
| Linux for x64 | 9.2 TS1M0 | 9.4 TS1M3 |
| OpenVMS on HP Integrity | 9.2 TS1M0 | 9.4 TS1M3 |
| Solaris for x64 | 9.2 TS1M0 | 9.4 TS1M3 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | high |
| Topic: | SAS Reference ==> Procedures ==> FCMP
|
| Date Modified: | 2010-12-24 10:50:11 |
| Date Created: | 2010-12-22 12:27:10 |